package com.example.dao;

import com.example.model.User;

import java.util.List;

public interface UserDao {

    List<User> selectAll();

    User findUserById(Integer id);

    User session(String account,String password);

    User findUserByAccount(String account);

    int registerUser(User user);

    int deleteByPrimaryKey(Integer id);

    int updateByIdSelective(User user);
}
